﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<asp:Content ID="Content2" ContentPlaceHolderID="body" Runat="Server">
    <table cellpadding="0" cellspacing="0" class="Desktop" align="center">
        <tr>
            <td class="LoginInfo" align="left" valign="top">
                <table cellpadding="0" cellspacing="0">
                    <tr><td>
                        <%DateTime now = DateTime.Now; %>
                        <%=Toolkit.CurrentUserName %>，<%=now.Hour<5?"凌晨":now.Hour<12?"上午":now.Hour<13?"中午":now.Hour<19?"下午":"晚上" %>好，欢迎使用本系统
                    </td></tr>
                </table>
            </td>
            <td valign="middle">
                <table cellpadding="0" cellspacing="0" class="Roles">
                    <tr>
                        <td class='<%=Toolkit.HasPower(Powers.ArticleManager) ? "RoleEnabled" : "RoleDisabled"%>'>文章管理员</td>
                        <td class="Things">&nbsp;</td>
                    </tr>
                    <tr>
                        <td class='<%=Toolkit.HasPower(Powers.ArticleVerifier) ? "RoleEnabled" : "RoleDisabled"%>'>文章审核员</td>
                        <td class="Things"><asp:Label ID="ArticleToVerify" runat="server" SkinID="ArticleToVerifyLabel" Visible="false"></asp:Label></td>
                    </tr>
                    <tr>
                        <td class='<%=Toolkit.HasPower(Powers.TeacherManager) ? "RoleEnabled" : "RoleDisabled"%>'>教师信息管理员</td>
                        <td class="Things">&nbsp;</td>
                    </tr>
                    <tr>
                        <td class='<%=Toolkit.HasPower(Powers.TeacherVerifier) ? "RoleEnabled" : "RoleDisabled"%>'>教师信息审核员</td>
                        <td class="Things"><asp:Label ID="TeacherToVerify" runat="server" SkinID="TeacherToVerifyLabel" Visible="false"></asp:Label></td>
                    </tr>
                    <tr>
                        <td class='<%=Toolkit.HasPower(Powers.TrainManager) ? "RoleEnabled" : "RoleDisabled"%>'>培训管理员</td>
                        <td class="Things">&nbsp;</td>
                    </tr>
                    <tr>
                        <td class='<%=Toolkit.HasPower(Powers.SystemManager) ? "RoleEnabled" : "RoleDisabled"%>'>系统管理员</td>
                        <td class="Things"><asp:Label ID="QuestionToVerify" runat="server" SkinID="QuestionToVerifyLabel" Visible="false"></asp:Label></td>
                    </tr>
                    <tr>
                        <td class='<%=Toolkit.HasPower(Powers.Teacher) ? "RoleEnabled" : "RoleDisabled"%>'>教师</td>
                        <td class="Things">
                            <asp:Label ID="InviteToConfirm" runat="server" SkinID="InviteToConfirmLabel" Visible="false"></asp:Label>
                            <asp:Label ID="QuestionToAnswer" runat="server" SkinID="QuestionToAnswerLabel" Visible="false"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class='<%=Toolkit.HasPower(Powers.Statistician) ? "RoleEnabled" : "RoleDisabled"%>'>统计员</td>
                        <td class="Things">&nbsp;</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <table width="400px" cellpadding="0" cellspacing="0" style="margin: 20px 0px 0px 0px">
                    <tr>
                        <td align="center">
                            <asp:HyperLink runat="server" NavigateUrl="~/Manage/ChangePassword.aspx" SkinID="ChangePasswordLink"></asp:HyperLink>
                        </td>
                        <td align="center">
                            <asp:LinkButton ID="Exit" runat="server" SkinID="ExitButton" onclick="Exit_Click"></asp:LinkButton>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>

